﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    [Serializable]
    public class CongTy
    {
        private string hanhDong;

        public string HanhDong
        {
            get { return hanhDong; }
            set { hanhDong = value; }
        }
        private int congTyID;
        private string maCongTy;
        private string tenCongTy;
        private string diaChi;
        private string email;
        private string website;
        private string dienThoai;
        private string fax;
        private string linkImage;
        private string linkImageRoot;
        private byte[] images;
        private System.Drawing.Image picture;
        public string LinkImage
        {
            get { return linkImage; }
            set { linkImage = value; }
        }
        private byte[] image;
        public byte[] Image
        {
            get { return image; }
            set { image = value; }
        }
        public string LinkImageRoot
        {
            get { return linkImageRoot; }
            set { linkImageRoot = value; }
        }
        public byte[] Images
        {
            get { return images; }
            set { images = value; }
        }
        public System.Drawing.Image Picture
        {
            get { return picture; }
            set { picture = value; }
        }
        private string ghiChu;

        public string GhiChu
        {
            get { return ghiChu; }
            set { ghiChu = value; }
        }
        Entities.TaiKhoan taiKhoan;
        public Entities.TaiKhoan TaiKhoan
        {
            get { return this.taiKhoan; }
            set
            {
                this.taiKhoan = value;
            }
        }
        public CongTy()
        { }
        public CongTy(string hanhdong, int congTyID, string maCongTy, string tenCongTy,
            string diaChi, string email, string website, string dienThoai, string fax, string linkimage, 
            byte[] image, string ghichu,Entities.TaiKhoan taiKhoan)
        {
            this.taiKhoan = taiKhoan;
            this.hanhDong = hanhdong;
            this.congTyID = congTyID;
            this.maCongTy = maCongTy;
            this.tenCongTy = tenCongTy;
            this.diaChi = diaChi;
            this.email = email;
            this.website = website;
            this.dienThoai = dienThoai;
            this.fax = fax;
            this.linkImage = linkimage;
            this.image = image;
            this.ghiChu = ghichu;
        }
        public int CongTyID
        {
            get { return this.congTyID; }
            set
            {
                this.congTyID = value;
            }
        }
        public string MaCongTy
        {
            get { return this.maCongTy; }
            set { this.maCongTy = value; }
        }
        public string TenCongTy
        {
            get { return this.tenCongTy; }
            set { this.tenCongTy = value; }
        }
        public string DiaChi
        {
            get { return this.diaChi; }
            set { this.diaChi = value; }
        }
        public string Email
        {
            get { return this.email; }
            set { this.email = value; }
        }
        public string Website
        {
            get { return this.website; }
            set { this.website = value; }
        }
        public string DienThoai
        {
            get { return this.dienThoai; }
            set { this.dienThoai = value; }
        }
        public string Fax
        {
            get { return this.fax; }
            set { this.fax = value; }
        }

    }

}
